package com.ordertracker;

/**
 * Created by IntelliJ IDEA.
 * User: Andrey
 * Date: 27.11.12
 * Time: 23:25
 * To change this template use File | Settings | File Templates.
 */
public class DefaultLifeCycle implements ApplicationLifeCycle{
    @Override
    public void preStart(ApplicationConfig config) {
        Application.getApplication();
        System.out.println("DefaultLifeCycle: preStart()");
    }

    @Override
    public void postStart(ApplicationConfig config) {
        Application.getApplication().init(config);
        System.out.println("DefaultLifeCycle: postStart()");
    }

    @Override
    public void preStop(ApplicationConfig config) {
        Application.getApplication().destroy(config);
    }
}
